<!--
 * @Description: 
 * @Author: chenjiaxin
 * @Date: 2022-03-13 06:42:41
 * @LastEditTime: 2022-03-13 07:38:23
 * @FilePath: \WebSkillExtend\eg10-省略-展开\index.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>省略-展开</title>
    <style>
      .line_hide_2 {
        width: 500px;
        /* height: 500px; */
        border: 1px solid #f00;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }

      .content {
        width: 500px;
        height: 100vh;
        border: 1px solid #f00;
        display: flex;
        flex-wrap: wrap;
        /* justify-content: flex-start; */
        /* align-items: center; */

        /* align-content: stretch; */
        align-content: flex-start;
      }
      .item {
        border: 1px solid green;
        /* margin: 10px 10px; */
        padding: 0px 10px;
        /* display: inline-block; */
        /* height: 20px; */
        margin: 0 10px 0 10px;
      }
    </style>
  </head>
  <div id="app">
    <!-- <div class="content line_hide_2">
      <div class="item" v-for="item in 30" :key="item">测试{{ item }}</div>
    </div> -->
    <div class="line_hide_2">
      <span class="item" v-for="item in 30" :key="item">测试{{ item }}</span>
    </div>
  </div>
  <body>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.2/vue.common.dev.js"></script>
    <script>
      var vm = new Vue({
        el: "#app",
        data: {
          list: ["1"],
        },
      });
    </script>
  </body>
</html>
